package com.ruanyun.sys.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangchuan
 * @since 2019-08-09
 */
@TableName("sys_district")
public class SysDistrict implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键 : 逻辑主键，唯一，不为空
     */
    @TableId(value = "district_id", type = IdType.ID_WORKER)
    private Long districtId;

//    /**
//     * 城市编号 : 城市编号
//     */
//    @TableField("id")
//    private Long id;

    /**
     * 城市上级编号 : 上级编号，顶级为NULL
     */
    @TableField("parent_id")
    private Long parentId;

    /**
     * 城市名称 : 城市名称
     */
    @TableField("district_name")
    private String districtName;

    /**
     * 城市等级 : 城市等级
     */
    @TableField("district_level")
    private Integer districtLevel;

    @TableField("district_code")
    private String districtCode;

    /**
     * 城市路径 :用于查询多级
     */
    @TableField("path")
    private String path;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

//    /**
//     * 是否为父级
//     */
//    @TableField("isParent")
//    private Boolean isParent;

    /**
     * 删除标识
     */
    @TableField("isDelete")
    private Boolean isDelete;


    public Long getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Long districtId) {
        this.districtId = districtId;
    }

//    public Long getId() {
//        return id;
//    }

//    public void setId(Long id) {
//        this.id = id;
//    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public Integer getDistrictLevel() {
        return districtLevel;
    }

    public void setDistrictLevel(Integer districtLevel) {
        this.districtLevel = districtLevel;
    }

    public String getDistrictCode() {
        return districtCode;
    }

    public void setDistrictCode(String districtCode) {
        this.districtCode = districtCode;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

//    public Boolean getParent() {
//        return isParent;
//    }
//
//    public void setParent(Boolean isParent) {
//        this.isParent = isParent;
//    }

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "SysDistrict{" +
        "districtId=" + districtId +
//        ", id=" + id +
        ", parentId=" + parentId +
        ", districtName=" + districtName +
        ", districtLevel=" + districtLevel +
        ", districtCode=" + districtCode +
        ", path=" + path +
        ", sort=" + sort +
//        ", isParent=" + isParent +
         ", isDelete=" + isDelete +
        "}";
    }
}
